README File for:

"Are People Willing to Trade Away Democracy for Desirable Outcomes? Experimental Evidence from Six Countries"
Version: September 20, 2025

For a full description of the methodology and research procedures, please see the main paper and supplementary appendix.



LIST OF REPLICATION MATERIALS
*****************************


A. Raw survey data:

- "raw_data_EG.csv": survey data from the Egyptian sample as downloaded from Qualtrics
- "raw_data_IN.csv": survey data from the Indian sample as downloaded from Qualtrics
- "raw_data_IT.csv": survey data from the Italian sample as downloaded from Qualtrics
- "raw_data_JP.csv": survey data from the Japanese sample as downloaded from Qualtrics
- "raw_data_TH.csv": survey data from the Thai sample as downloaded from Qualtrics
- "raw_data_US.csv": survey data from the American sample as downloaded from Qualtrics


B. R scripts for data cleaning:
[Note: Windows PC users may need to start with the following action for these R scripts -- "File > Reopen with Encoding > UTF-8 > (Optional) Set as default encoding for source files."]

- "data_cleaning_EG.R": R script to clean and reshape the raw data from "raw_data_EG.csv" into "df_EG.csv"
- "data_cleaning_IN.R": R script to clean and reshape the raw data from "raw_data_IN.csv" into "df_IN.csv"
- "data_cleaning_IT.R": R script to clean and reshape the raw data from "raw_data_IT.csv" into "df_IT.csv"
- "data_cleaning_JP.R": R script to clean and reshape the raw data from "raw_data_JP.csv" into "df_JP.csv"
- "data_cleaning_TH.R": R script to clean and reshape the raw data from "raw_data_TH.csv" into "df_TH.csv"
- "data_cleaning_US.R": R script to clean and reshape the raw data from "raw_data_US.csv" into "df_US.csv"


C. Clean experimental data:

- "df_EG.csv": recoded experimental data from Egyptian respondents prepared for data analysis
- "df_IN.csv": recoded experimental data from Indian respondents prepared for data analysis
- "df_IT.csv": recoded experimental data from Italian respondents prepared for data analysis
- "df_JP.csv": recoded experimental data from Japanese respondents prepared for data analysis
- "df_TH.csv": recoded experimental data from Thai respondents prepared for data analysis
- "df_US.csv": recoded experimental data from American respondents prepared for data analysis



D. R scripts for data analysis:

- "main_analysis.R": R script to produce Figures 1-5, Figures S1-S7, Figures S10-S22, Figures S24-S30, and their corresponding tables
- "supp_ABS.R": R script to produce Figure 6
  - Note 1: This R script uses the data files "W6_8_Thailand_Release_20250108.dta", "W6_11_Vietnam_Release_20250117.dta", "W6_15_Australia_Release_20250305.dta", "W6_Cambodia_Release_20240819.dta", "W6_Indonesia_release_20240402.dta", "W6_Korea_Release_20241220.dta", "W6_Mongolia_Release_20241223.dta", "W6_Philippines_release_20240403.dta", and "W6_Taiwan_EN_20240402.dta", which are Wave 6 of the Asian Barometer Survey in respective countries. We do not upload these files because they are the properties of the Asian Barometer Project Office, which is solely responsible for the data distribution. Applications for the data files can be made here: https://www.asianbarometer.org/datar?page=d10.
  - Note 2: Because we cannot include these proprietary data files as part of the replication package, we include the log file for "supp_ABS.R", named "log_ABS.log".
- "supp_cjRank.R": R script to produce Table S1
- "supp_country_groups.R" R script to produce Figures S8-S9 and their corresponding tables
- "supp_majorty_minority.R": R script to produce Figure S23 and its corresponding table
- "supp_MRS.R": R script to produce Table S2



------------------------------------------------------------------------------------------------------
Note 1: The replication was done with RStudio version 2024.12.1+563, and with the following R version:

platform       aarch64-apple-darwin20     arch           aarch64                      os             darwin20                  system         aarch64, darwin20       status                                     major          4                           minor          4.3                        year           2025                        month          02                        day            28                          svn rev        87843                       language       R                           version.string R version 4.4.3 (2025-02-28)nickname       Trophy Case

Note 2: The replication was conducted on macOS (Sequoia 15.6.1)

Note 3: Package used for this replication and their versions (generated by running sessionInfo() in R):
attached base packages:
[1] grid      stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] cjRank_1.0      survey_4.4-2    survival_3.8-3  Matrix_1.7-3    haven_2.5.4     knitr_1.50     
 [7] gridExtra_2.3   cowplot_1.1.3   expss_0.11.6    maditr_0.8.5    cregg_0.3.7     estimatr_1.0.6 
[13] lubridate_1.9.4 forcats_1.0.0   stringr_1.5.2   dplyr_1.1.4     purrr_1.1.0     readr_2.1.5    
[19] tidyr_1.3.1     tibble_3.3.0    ggplot2_4.0.0   tidyverse_2.0.0

loaded via a namespace (and not attached):
 [1] gtable_0.3.6        xfun_0.51           htmlwidgets_1.6.4   lattice_0.22-6     
 [5] numDeriv_2016.8-1.1 tzdb_0.5.0          vctrs_0.6.5         tools_4.4.3        
 [9] generics_0.1.4      sandwich_3.1-1      pkgconfig_2.0.3     data.table_1.17.0  
[13] checkmate_2.3.2     RColorBrewer_1.1-3  stringmagic_1.2.0   S7_0.2.0           
[17] lifecycle_1.0.4     compiler_4.4.3      farver_2.1.2        textshaping_1.0.0  
[21] ggstance_0.3.7      mitools_2.4         htmltools_0.5.8.1   htmlTable_2.4.3    
[25] Formula_1.2-5       crayon_1.5.3        pillar_1.11.1       nlme_3.1-167       
[29] tidyselect_1.2.1    digest_0.6.37       stringi_1.8.7       labeling_0.4.3     
[33] splines_4.4.3       fastmap_1.2.0       cli_3.6.5           magrittr_2.0.4     
[37] dreamerr_1.5.0      withr_3.0.2         scales_1.4.0        backports_1.5.0    
[41] timechange_0.3.0    httr_1.4.7          matrixStats_1.5.0   ragg_1.3.3         
[45] zoo_1.8-14          hms_1.1.3           evaluate_1.0.3      fixest_0.13.2      
[49] lmtest_0.9-40       rlang_1.1.6         Rcpp_1.1.0          glue_1.8.0         
[53] DBI_1.2.3           rstudioapi_0.17.1   plyr_1.8.9          R6_2.6.1           
[57] systemfonts_1.2.1   texreg_1.39.4  
